//
//  FGBaseTemplateView.h
//  lite
//
//  Created by feige on 2022/11/3.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class FGBaseTemplateView;
@protocol FGTemplateViewDelegate <NSObject>
@optional
/**
 templateDict格式：
 {
     "operationType":1,
     "content":"",
     "id":113,
     "isRecommend":true,
     "title":"账号无法登录",
     "updateTime":"2022-10-26 09:22:22",
     "tagId":128,
     "createTime":"2022-10-26 09:22:22",
     "url":"https:\/\/www.cnblogs.com\/zhaoxiaobei\/p\/9283875.html"
 }
 */
/**
 * 点击了模版消息上的Cell回调
 */
- (void)templateView:(FGBaseTemplateView *)templateView didSelectedCell:(NSDictionary *)templateDict;
@end

@interface FGBaseTemplateView : UIView

/// 给子类实现
- (void)fillData:(id)templateData;

/// 是否是预览，默认NO
@property (nonatomic, assign) BOOL isPreview;
@property (nonatomic, weak) id<FGTemplateViewDelegate> baseDelegate;

@end

NS_ASSUME_NONNULL_END
